package com.sright.bcard.common.service.share.utils;

import java.util.Random;

/**
 * 生成验证码的工具类
 */
public class RandomCodeUtils {

    public static String codeSix() {
        String str = "0123456789";
        StringBuilder sb = new StringBuilder(6);
        for(int i=0;i<6;i++)
        {
            char ch=str.charAt(new Random().nextInt(str.length()));
            sb.append(ch);
        }
        return sb.toString();
    }

}
